{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "%matplotlib inline\n",
    "import pandas as pd"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<style>body {\n",
       "    margin: 0;\n",
       "    font-family: Helvetica;\n",
       "}\n",
       "table.dataframe {\n",
       "    border-collapse: collapse;\n",
       "    border: none;\n",
       "}\n",
       "table.dataframe tr {\n",
       "    border: none;\n",
       "}\n",
       "table.dataframe td, table.dataframe th {\n",
       "    margin: 0;\n",
       "    border: 1px solid white;\n",
       "    padding-left: 0.25em;\n",
       "    padding-right: 0.25em;\n",
       "}\n",
       "table.dataframe th:not(:empty) {\n",
       "    background-color: #fec;\n",
       "    text-align: left;\n",
       "    font-weight: normal;\n",
       "}\n",
       "table.dataframe tr:nth-child(2) th:empty {\n",
       "    border-left: none;\n",
       "    border-right: 1px dashed #888;\n",
       "}\n",
       "table.dataframe td {\n",
       "    border: 2px solid #ccf;\n",
       "    background-color: #f4f4ff;\n",
       "}\n",
       "h3 {\n",
       "    color: white;\n",
       "    background-color: black;\n",
       "    padding: 0.5em;\n",
       "}\n",
       "</style>"
      ],
      "text/plain": [
       "<IPython.core.display.HTML object>"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from IPython.core.display import HTML\n",
    "css = open('style-table.css').read() + open('style-notebook.css').read()\n",
    "HTML('<style>{}</style>'.format(css))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div style=\"max-height:1000px;max-width:1500px;overflow:auto;\">\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>title</th>\n",
       "      <th>year</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Tomorrow Ends at Dawn</td>\n",
       "      <td>2002</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Brothers of the West</td>\n",
       "      <td>1937</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Nemo</td>\n",
       "      <td>1984</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Pereezd</td>\n",
       "      <td>2014</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>Bad for Business</td>\n",
       "      <td>2007</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                   title  year\n",
       "0  Tomorrow Ends at Dawn  2002\n",
       "1   Brothers of the West  1937\n",
       "2                   Nemo  1984\n",
       "3                Pereezd  2014\n",
       "4       Bad for Business  2007"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "titles = pd.read_csv('data/titles.csv')\n",
    "titles.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div style=\"max-height:1000px;max-width:1500px;overflow:auto;\">\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>title</th>\n",
       "      <th>year</th>\n",
       "      <th>name</th>\n",
       "      <th>type</th>\n",
       "      <th>character</th>\n",
       "      <th>n</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Suuri illusioni</td>\n",
       "      <td>1985</td>\n",
       "      <td>Homo $</td>\n",
       "      <td>actor</td>\n",
       "      <td>Guests</td>\n",
       "      <td>22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Gangsta Rap: The Glockumentary</td>\n",
       "      <td>2007</td>\n",
       "      <td>Too $hort</td>\n",
       "      <td>actor</td>\n",
       "      <td>Himself</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Menace II Society</td>\n",
       "      <td>1993</td>\n",
       "      <td>Too $hort</td>\n",
       "      <td>actor</td>\n",
       "      <td>Lew-Loc</td>\n",
       "      <td>27</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Porndogs: The Adventures of Sadie</td>\n",
       "      <td>2009</td>\n",
       "      <td>Too $hort</td>\n",
       "      <td>actor</td>\n",
       "      <td>Bosco</td>\n",
       "      <td>3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>Stop Pepper Palmer</td>\n",
       "      <td>2014</td>\n",
       "      <td>Too $hort</td>\n",
       "      <td>actor</td>\n",
       "      <td>Himself</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                               title  year       name   type character   n\n",
       "0                    Suuri illusioni  1985     Homo $  actor    Guests  22\n",
       "1     Gangsta Rap: The Glockumentary  2007  Too $hort  actor   Himself NaN\n",
       "2                  Menace II Society  1993  Too $hort  actor   Lew-Loc  27\n",
       "3  Porndogs: The Adventures of Sadie  2009  Too $hort  actor     Bosco   3\n",
       "4                 Stop Pepper Palmer  2014  Too $hort  actor   Himself NaN"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "cast = pd.read_csv('data/cast.csv')\n",
    "cast.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Hamlet                  19\n",
       "Carmen                  13\n",
       "Macbeth                 12\n",
       "The Three Musketeers    12\n",
       "She                     11\n",
       "Maya                    11\n",
       "The Outsider            11\n",
       "Karma                   10\n",
       "Anna Karenina           10\n",
       "Temptation              10\n",
       "dtype: int64"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# What are the ten most common movie names of all time?\n",
    "\n",
    "titles.title.value_counts().head(10)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "1937    1180\n",
       "1936    1116\n",
       "1938    1115\n",
       "dtype: int64"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# Which three years of the 1930s saw the most films released?\n",
    "\n",
    "t = titles\n",
    "t = t[t.year // 10 == 193]\n",
    "t.year.value_counts().head(3)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x7f275b321160>"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAX8AAAEOCAYAAABhOhcDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHdNJREFUeJzt3X+0nHVh5/H3RyJIlQNNoeGHCOwaFmJ1FVZif8lVlOaP\nLuCpC7FbFzTbdc26aF27JJ7dSvd0EfC0LHaXnO0uNICK5EhFu2IgUG67tUsiSEokpgTrxSRAwMgP\nf5vAZ/94vjeZ3M7k3js/MvM89/M6Z8595jvPfOZ7b+Z+78xnnpnINhERMbe8ZNgTiIiIgy+Lf0TE\nHJTFPyJiDsriHxExB2Xxj4iYg7L4R0TMQTNa/CUdJelzkr4habOkxZLmS1on6RFJd0k6qmX/lZK2\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fiDpV0vm+cAuAJd3bSZ/oPl1nnvyh59/EdV7FP5S0jOSnqF6P8fPARfO+fxe/3oM+0T1\nCYDjVO9yPInqKeTzwNeAf9aH/H8KfJWqZ/sK8E/K+DHApckfXH6d55784eeXrNOBtwFHTBlfMtfz\ne57cKJ+A9ww4/73JH05+neee/IOTD1xK9Y7Y24HHgAtaLuvHu9vrnT/If8Bhn4BtyW9mfp3nnvyD\nkw98HXhF2T6Z6iM2PlTO92NxrnV+7d/hq33v0GxnQfLrm1/nuSd/+PlURzN+H8D2RHkd8DZJJ9Gf\nj9eodX7tF3/g54ElVMfDTvU3ya91fp3nnvzh5z8l6fUu7263/X1Jvw5cD7xuruc3YfH/EtVTowen\nXiDpL5Nf6/w6zz35w8//V8B+/4eF7d2SLgb+ZK7n1/5NXhERMXtNOM4/IiJmKYt/RMQclMU/ImIO\nyuIfETEHZfGPiJiD/j+z6rMgx/PIsQAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x7f27642ee080>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# Plot the number of films that have been released each decade\n",
    "# over the history of cinema.\n",
    "\n",
    "t = titles\n",
    "(t.year // 10 * 10).value_counts().sort_index().plot(kind='bar')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x7f275ce86e48>"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXAAAAEOCAYAAACQMUyOAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHidJREFUeJzt3X+M5Hd93/Hnyz4sCKaxKO0Btptzi02wCrFxa67mh9dR\nSM0JGarSBlogF6TmJOsEEiWFIFc1VaokTQPGiQFXhZ6JWruUpJYd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PclPYtu0/q9ObZso/vW/Dy67yCPALfP64epkv75\nPD5RTNDxVLqvMP8sIm6X9EbgEuA+4PqI+Ks5NJwG/AvgBcAhutn7jyQ9Ddg+55HSlpRyAzczm1T9\noupddO/Jsp3uu7NvAjcDvzaPT+6tGlK+naykZ0j6t5K+LOk7kv5c0gFJu7dSwzodf+z7ws8LPy+e\n8DHgUWAJeGZEPBO4jO7VMR/bzA0pvwKXdAvdPO8PgH8CnA7cBFxFN2d791ZoyNKRoSFLR4aGLB0Z\nGmrHn0TEeRu9blM0xJzecGYjv4AvDh1/of5+CvCVrdKQpSNDQ5aODA1ZOjI01Nv7JN0P+LcPfOzZ\nwDuBP9jMDSlHKMB3Jb0cQNJrgP8HEPVv4G2hhiwdGRqydGRoyNKRoQG6f2z9WcCnJT0q6VGgAH8d\n+KebumFenyU3+Nnsp4DP082PPgM8v378bwBv3SoNWToyNGTpyNCQpSNDw0DLC4CfAZ4x9PHLN3PD\n3O7gGd5Jb3FDno4MDVk6MjRk6ZhnA/BW4Ct0r/j4v3R/U3j1uoObuSHlDzHXozm9F0r2hiwdGRqy\ndGRoyNIxzwZJXwJ2RsRj9e8s/C7wOxFxzVp/8WqzNKT8q/SSDq9z9fat0pClI0NDlo4MDVk6MjRU\niojHACJiRd2bbP2upJ9gfm+x0KQh5QYO/E3gcrrXVQ777BZqyNKRoSFLR4aGLB0ZGgC+KemCqH9r\nun4V/Gq6N9R60WZuyLqBfwI4PSIODl8h6dNbqCFLR4aGLB0ZGrJ0ZGiA7p0ZT3jP/oj4gaSfB/7j\nZm5YuBm4mZl1sr4O3MzMxvAGbma2oLyBm5ktKG/gZmYLyhu4mdmC+v/alDurcrLoAgAAAABJRU5E\nrkJggg==\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x7f275ce916a0>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# Plot the number of \"Hamlet\" films made each decade.\n",
    "\n",
    "t = titles\n",
    "t = t[t.title == 'Hamlet']\n",
    "(t.year // 10 * 10).value_counts().sort_index().plot(kind='bar')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x7f275ce0f710>"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAWwAAAEOCAYAAACtoy3oAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHEJJREFUeJzt3X2QJHd93/H3R09GEopOZ9mns5E4gTlLGIEEQShEoBWW\nVArBQpU4wiQ4d5REpQKUIBBHJyoJch4MoipBTrlI2UHiztiFuYAlII6jW66uRcVOEII79Hgc2KzF\n062EpEMIRADpmz+6l1t2enZ7H2Z+3775vKqmdn49PTOf/fXud3u/0zOtiMDMzPI7qnQAMzPrxgXb\nzKwnXLDNzHrCBdvMrCdcsM3MesIF28ysJ5Ys2JLeJukeSfdKeluzbL2kaUkHJO2StG70Uc3MJtui\nBVvSC4BrgJcCLwJeI+m5wDZgOiI2A7ubsZmZjdBSe9hnAZ+NiB9ExFPAHcA/BK4AdjTr7ACuHF1E\nMzODpQv2vcArmhbICcCrgWcBGyJitllnFtgwwoxmZgYcs9iNEbFf0o3ALuB7wD7gqQXrhCS/v93M\nbMQWLdgAEXELcAuApP8IfB2YlXRaRByUtBF4qO2+LuRmZisTEWpbuOgF+Pnm6xnAA8DJwPuA65rl\n24D3DrlvLPX4XS7ADWvxOGt9yZjLmZxpEnId6ZmG1c4l97CBj0n6WeBHwJsj4juS3gvslHQ1MANc\ntYw/HCuxacSPv1KbSgdosal0gBabSgdosal0gBabSgcYYlPpAC02lQ7QYtOon6BLS+SVLcseBS4Z\nSSIzM2vVl3c6bi8dYIjtpQO02F46QIvtpQO02F46QIvtpQMMsb10gBbbSwdosX3UT6CmXzKaB5ci\n2hrnZ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kmaaBf0XdQ59bdhpwHfDpUT53qpYI8D1JrwCQ9FrqN4IQzbvUCsqY\ny5mcaa1lzJUx0+uoj1W/Q9Jjkh6jft/BzwJXjfSZS/yFWuQv14uAz1H3gv4C+OVm+c8B1zqXMznT\nZOXKmKl5/rOBS4CTFiwf6TufUx2HHRFfBF7asvxhSU8UiDT3/OlyOVM3ztRdxlwZM0m6FngL8ABw\ns6S3RcRtzc3vAUZ2JpxULzouRtLXIuL00jkWypjLmbpxpu4y5iqVSdK9wAUR8UTz3oOPAx+OiJsk\n7Y2I80b13Kn2sHX4XXJtNowtyAIZczlTN87UXcZcGTNR7+g+ARARM5IuAj4u6dmM+OMOUhVs4OeB\ny6mPcVzoL8ecZb6MuZypG2fqLmOujJkeknRuNO/Ibva0X0P9yYYvHOUTZyvYfwY8MyL2LrxB0h0F\n8szJmMuZunGm7jLmypjpnwI/9Xn9EfEjSVuAPxjlE/emh21mNumyHYdtZmZDuGCbmfWEC7aZWU+4\nYJuZ9YQLtplZT/x/cAQs4JeasCYAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x7f275cddeb00>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# Plot the number of \"Rustler\" characters\n",
    "# in each decade of the history of film.\n",
    "\n",
    "c = cast\n",
    "c = c[c.character == 'Rustler']\n",
    "(c.year // 10 * 10).value_counts().sort_index().plot(kind='bar')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x7f275cda26d8>"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAWwAAAEOCAYAAACtoy3oAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAFV5JREFUeJzt3XuMbWV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
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# Plot the number of \"Hamlet\" characters each decade.\n",
    "\n",
    "c = cast\n",
    "c = c[c.character == 'Hamlet']\n",
    "(c.year // 10 * 10).value_counts().sort_index().plot(kind='bar')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Himself        18630\n",
       "Dancer         10864\n",
       "Extra           8474\n",
       "Reporter        7483\n",
       "Doctor          6643\n",
       "Policeman       6399\n",
       "Student         6158\n",
       "Nurse           6039\n",
       "Bartender       5986\n",
       "Party Guest     5620\n",
       "Zombie          5573\n",
       "dtype: int64"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# What are the 11 most common character names in movie history?\n",
    "\n",
    "cast.character.value_counts().head(11)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Joyce Brothers         14\n",
       "Queen Elizabeth II     10\n",
       "Margaret Thatcher       8\n",
       "Joan Rivers             7\n",
       "Mary Jo Pehl            7\n",
       "Kareena Kapoor          5\n",
       "Chris Evert             5\n",
       "Sally Jessy Raphael     5\n",
       "Caroline Rhea           5\n",
       "Marilyn Monroe          5\n",
       "dtype: int64"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# Who are the 10 people most often credited as \"Herself\" in film history?\n",
    "\n",
    "c = cast\n",
    "c[c.character == 'Herself'].name.value_counts().head(10)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Adolf Hitler             91\n",
       "Richard Nixon            38\n",
       "Ronald Reagan            28\n",
       "John F. Kennedy          26\n",
       "Ron Jeremy               22\n",
       "George W. Bush           20\n",
       "Franklin D. Roosevelt    20\n",
       "Bill Clinton             20\n",
       "Winston Churchill        20\n",
       "Martin Luther King       19\n",
       "dtype: int64"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# Who are the 10 people most often credited as \"Himself\" in film history?\n",
    "\n",
    "c = cast\n",
    "c[c.character == 'Himself'].name.value_counts().head(10)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Emmett Vogan       39\n",
       "Sam (II) Harris    30\n",
       "Bess Flowers       28\n",
       "Harold Miller      28\n",
       "Nolan Leary        27\n",
       "Frank O'Connor     26\n",
       "Franklyn Farnum    24\n",
       "Edmund Cobb        24\n",
       "Tom London         24\n",
       "Pierre Watkin      24\n",
       "dtype: int64"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# Which actors or actresses appeared in the most movies in the year 1945?\n",
    "\n",
    "cast[cast.year == 1945].name.value_counts().head(10)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Shakti Kapoor       19\n",
       "Mammootty           17\n",
       "Sukumari            16\n",
       "Lou Scheimer        15\n",
       "Aruna Irani         14\n",
       "Rajesh Khanna       13\n",
       "Mohanlal            13\n",
       "Deven Verma         13\n",
       "Raj Babbar          13\n",
       "Satyendra Kapoor    12\n",
       "dtype: int64"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# Which actors or actresses appeared in the most movies in the year 1985?\n",
    "\n",
    "cast[cast.year == 1985].name.value_counts().head(10)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x7f275ccfb240>"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXgAAAEACAYAAAC57G0KAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJztnXm0HNV1r7+NkBCDxGQGCYSvADHPSEAMBBkbEJPk+Zlg\nG9t5DsY8wI5jMCR5S8EOASfxzBBiQHjCJHkxkmxGY+BhIICwEELMhAtCgMQk5kHAzh/n9FXfvl3d\nXdWnqk5X72+tu3SruoafTtfdffp39tlHVBXDMAyjeqxRtgDDMAwjHyzAG4ZhVBQL8IZhGBXFArxh\nGEZFsQBvGIZRUSzAG4ZhVJSWAV5ELhaR5SKyuG7fPiJyh4gsFJE7RWRa/jINwzCMtLTrwV8CzGjY\n9x3gb1V1T+D/+m3DMAwjMloGeFW9GXixYffTwPr+9w2AZTnoMgzDMLpE2s1kFZEBYL6q7uq33w/8\nAVDcB8SfqOrSfGUahmEYackyyHoRcLKqbgV8Dbg4rCTDMAwjBFl68C+r6nj/uwArVXX9JudZkRvD\nMIwMqKqEuM6aGc55REQOUtWbgIOBh5IODCUyLSIyW1Vnl3HvVpiudJiudJiudESsK1jnuGWAF5HL\ngIOA94nIUlzWzF8A54rIWsAbfjs2BsoWkMBA2QISGChbQAIDZQtIYKBsAQkMlC0ggYGyBSQwULaA\nvGkZ4FX1mISX9s1Bi2EYhhGQqs5knVO2gATmlC0ggTllC0hgTtkCEphTtoAE5pQtIIE5ZQtIYE7Z\nAvKm7SBr5guLaFkevGEYRq8SMnZWsgcvItPL1tAM05UO05UO05WOWHWFpJIB3jAMwzCLxjAMIyrM\nojEMwzDaUskAH6u3ZrrSYbrSYbrSEauukFQywPcbIhwjQqavdCIcApPXDq3JMIzyMQ++xxFhDPAW\nsKcqd6c8dzSwAjhdlQvy0GcYRjrMgzfqGef/nZnh3AOBdTOeaxhG5FQywMfqreWkq1bJc1aGc2cB\n34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Z61O9/V1X/UlX3VNWP4OqGPISb\nd1FGe7XTlUt7ichoXFD4mape4XcvF5HN/esTgBV+/zKGf5vYEvd8LSNwmwXQtQzCt1lKXUmU3V6J\npG2vng3wIrKJ/3cN4G+A8+teWwP3tfpXdftG1UacfWMfDSwmME10XeBfegA42L+2LrAf8ICqPoPz\n4vcVEQE+C1wx4sLF6rq/xPY632+v7fUgIocAq1T1AVV9mnLaq6WuPNrL//8uAu5T1e/XvTQPOM7/\nfhyr///zgE+Ly/SZDEwB7gj9jIXSFbrNMugaOrV+I/QzFkpXpvbqdDS2zB+cj/4U7mvyUtzX55Nx\no9EPAmc1HD8duLVh3zq4r9WLgHtxX6+lKF3AWsDP/RuyBPh63Wt7+/2PAD8ssr2SdOEGXMtsrwHc\nh899wLXApEjaq6munNrrAOA9XAbKQv8zA9gIN/D7kNewQd05Z/h2eQA4LI82C6UrdJtl1DUIPA+8\n4t/7HSJprxG6yBDDbKKTYRhGRelZi8YwDMNojQV4wzCMimIB3jAMo6JYgDcMw6goFuANwzAqigV4\nwzCMimIB3jAMo6JYgDcMw6go/wObLdtwLadeBAAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x7f275cc8c2b0>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# Plot how many roles Mammootty has played in each year of his career.\n",
    "\n",
    "cast[cast.name == 'Mammootty'].year.value_counts().sort_index().plot()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Patron in Frisky Rabbit         16\n",
       "Patron in the Coffee House       9\n",
       "Patron in Chinese Restaurant     9\n",
       "Patron in Billiard Parlor        5\n",
       "Patron in Bar                    4\n",
       "Patron in cabaret                3\n",
       "Patron in restaurant             3\n",
       "Patron in Restaurant             3\n",
       "Patron in Club                   3\n",
       "Patron in Coffee Shop            2\n",
       "dtype: int64"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# What are the 10 most frequent roles that start with the phrase \"Patron in\"?\n",
    "\n",
    "c = cast\n",
    "c[c.character.str.startswith('Patron in ')].character.value_counts().head(10)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Science Teacher         53\n",
       "Science Fair Student     8\n",
       "Science Student          7\n",
       "Science Fair Judge       6\n",
       "Science Club Member      5\n",
       "Science Reporter         5\n",
       "Science Kid              4\n",
       "Science Promo Cadet      4\n",
       "Science Officer          3\n",
       "Science teacher          3\n",
       "dtype: int64"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# What are the 10 most frequent roles that start with the word \"Science\"?\n",
    "\n",
    "c = cast\n",
    "c[c.character.str.startswith('Science')].character.value_counts().head(10)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x7f275cbfc048>"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAY8AAAEPCAYAAAC6Kkg/AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGnhJREFUeJzt3X+wX3dd5/Hnqy3aFMymtzBJhMplBjulLt0AbmE02KBt\nU0FLM0iFFW2FZXbHnb3VRpbQcXdARym4iWxkVocBTAa10hlMqauYhG4rurB0yzTSX6F0h7tDkd7a\nxmyKtFjr2z/O53K/fHu/N/fcnO/38zmf7+sxcybfc76/Pq/vOfm+7/l8zjlfRQRmZmZtnJa7AWZm\n1j8uHmZm1pqLh5mZtebiYWZmrbl4mJlZay4eZmbW2hk531zSPHACeBp4KiIukjQDfBx4ITAPXBUR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bprvSwZwMvBv4SuFbSlWn5uaSLB9Jcnv0TE2282Ri4eJit3odpfnJ2I82eyI8B742IDw0+\nSNK2dN+rIuJJSbcBZ6a7nwxfUM4q4G4rs9U7QHPF0h+k+enVg8BbBy7B/vx0qfb1wN+lwnE+Htuw\nCnnPw2yVIuIpSf+TpjAEcFjSS4DPNT+BwOPAW2gKy7+XdB/NJds/N/gyE2622Vj4kuxmq5QGyr8A\n/FRE/N/c7THLyd1WZqsg6QLgy8CnXTjMvOdhZmZr4D0PMzNrzcXDzMxac/EwM7PWXDzMzKw1Fw8z\nM2vNxcPMzFr7Z5XleOohPN4eAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x7f275cc04d68>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# Plot the n-values of the roles that Judi Dench has played over her career.\n",
    "\n",
    "c = cast\n",
    "c = c[c.name == 'Judi Dench']\n",
    "c.plot(x='year', y='n', kind='scatter')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x7f275cc36160>"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAEPCAYAAABGP2P1AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAF4tJREFUeJzt3X+wJWdd5/H3lww/hsSB3GABS9AbV1DMBiJITG0Fc1fE\nmQIXiaiIiAlZrd1arIHNiIRoabQKFsEEiIqWy2YGS4m/MO5uLcUMuBlll+yGwAwM+QGIjBvEBEIy\nxCzJzpD5+kf3Tc65c+6dM/eePk8/Pe9XVdecfrpvn8/pe25/p5/nnO7ITCRJWvao0gEkSf1iYZAk\njbEwSJLGWBgkSWMsDJKkMRYGSdKYzgpDRFwbEXdFx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arkm1cnvYj41Yh43cj8myNi\ne0S8ISJuiohPRsSVI8uvj+YmUp+OiJ8dab8/In4jIvbTXE5BqpKFQWquSvnT8PD/9F8B3Al8e2ae\nR3OjlOdFxAva9S/NzO8Bng9sj4jT2/bHA/87M8/NzI/O9RVIM1Ts6qpSX2Tm30XEVyPiXJq77u2j\nOej/YETsa1c7leYquR8BXhfNzYyguRb+M2iui/UQ8P65hpc6YGGQGu+huU3ik2nOIF4I/MfM/L3R\nlSJiqV12fmY+GBE3AI9rFz+YXnxMA2BXktS4HtgGfA/wQZrLX186chnjp7WXO94C3NsWhe/EsQQN\nkGcMEpCZRyLif9Ac9BP4UEQ8C7ixuYQ9/0hzSfUPAv8uIm6luezxjaObmXNsqRNedlvi4UHnjwM/\nmpmfL51HKsmuJJ30IuK7gM8BH7YoSJ4xSJJW8IxBkjTGwiBJGmNhkCSNsTBIksZYGCRJYywMkqQx\n/wRzd/co6sGAfAAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x7f275cd58a20>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# Plot the n-values of Cary Grant's roles through his career.\n",
    "\n",
    "c = cast\n",
    "c = c[c.name == 'Cary Grant'].sort_values('year')\n",
    "c = c[c.n.notnull()]\n",
    "c.plot(x='year', y='n', kind='scatter')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x7f275cbac908>"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEPCAYAAABY9lNGAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAF5RJREFUeJzt3X+wnFd93/H3F0SCYqOxZKjtGtPrDGQCU1O5BJMpptYk\nxXLCjL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J4CvAbuBu4A0t5etu/7Ndxr10qysay7cB+FLP48xcvjHfm99L\nOdLbC9zH01cQzly2k8i3QCmC9wM7KUO9s57vYuC7lJVJu7vtMmAdZQL+a12WM0bus6XL8QCw8WQy\n+kU5SVKv6kNMkqTZZIGQJPWyQEiSelkgJEm9LBCSpF4WCElSLwuEJKmXBUIaUPctXmku+eaVOhHx\nHyLi3SP7H4yIzRHxixFxZ0TcExHXjVy/IyLuivIHXH5hpP1oRPyniNhDOU2FNJcsENJxNwM/D0/9\n5v/TwAHgpZl5EeUUy6+KiNd1t397Zv4Q8Gpgc0Ss7dq/D/jzzFyfmV+aagJpgqqfzVWaFZn5vyPi\nkYhYT/kLXrspH/6XRsTu7manAS8Fvgi8u/ujVlDOnPkyyl/repJy1k1prlkgpKf7HcqfpzyLckTx\no8CvZeZHRm8UERu66344M/8+Iu4Ant9d/ffpSc7UAIeYpKfbQTlL5g8Bn6ectvztI6eHPrc7jfQa\n4NGuOPwgzjWoQR5BSCMy84mI+B+UD/8Ebo+IlwNfLqfP59vAWynF419FxP2U00l/efRhptxtaRCe\n7lsa0U1O3w38ZGb+Ve3+SDU5xCR1IuIVwF8CX7A4SB5BSJKW4BGEJKmXBUKS1MsCIUnqZYGQJPWy\nQEiSelkgJEm9/j93PT1iJVA2HgAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x7f275cb3a208>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# Plot the n-value of the roles that Sidney Poitier has acted\n",
    "# over the years.\n",
    "\n",
    "c = cast\n",
    "c = c[c.name == 'Sidney Poitier'].sort_values('year')\n",
    "c = c[c.n.notnull()]\n",
    "c.plot(x='year', y='n', kind='scatter')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "actor      6349\n",
       "actress    2789\n",
       "dtype: int64"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# How many leading (n=1) roles were available to actors,\n",
    "# and how many to actresses, in the 1950s?\n",
    "\n",
    "c = cast\n",
    "c = c[c.year // 10 == 195]\n",
    "c = c[c.n == 1]\n",
    "c.type.value_counts()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "actress    4375\n",
       "actor      4354\n",
       "dtype: int64"
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# How many supporting (n=2) roles were available to actors,\n",
    "# and how many to actresses, in the 1950s?\n",
    "\n",
    "c = cast\n",
    "c = c[c.year // 10 == 195]\n",
    "c = c[c.n == 2]\n",
    "c.type.value_counts()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.4.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}
